package io.renren.modules.sys.bottom;

import org.apache.commons.lang.StringUtils;

/**
 * 提现状态
 *
 * @author wuxianji
 * @since 2017/11/13 上午9:35
 **/
public enum ExtractStatusEnum {

    WAITING(1, "待提现"),
    SUCCESS(5, "提现成功"),
    CANCLE(10, "撤销")
    ;

    private int code;

    private String message;

    private ExtractStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public static ExtractStatusEnum getBycode(int code) {
        for (ExtractStatusEnum extractStatusEnum : values()) {
            if (extractStatusEnum.getCode() == code) {
                return extractStatusEnum;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
